package com.sulent.frame.file.common.properties;

import com.sulent.frame.file.common.config.MinioConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @ClassName MinioConfigProperties
 * @Description: TODO
 * @Author Submerge.
 * @Since 2024/2/5 9:48
 * @Version 1.0
 */
@ConfigurationProperties("file.minio")
public class MinioConfigProperties {

    private String endpoint;
    private String accessKey;
    private String secretKey;
    private String bucketName;

    private MinioConfigProperties(){

    }

    public MinioConfigProperties(String endpoint, String accessKey, String secretKey, String bucketName) {
        this.endpoint = endpoint;
        this.accessKey = accessKey;
        this.secretKey = secretKey;
        this.bucketName = bucketName;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }
}
